package com.stephentuso.welcomeexample;

import com.stephentuso.welcome.BasicPage;
import com.stephentuso.welcome.FullscreenParallaxPage;
import com.stephentuso.welcome.ParallaxPage;
import com.stephentuso.welcome.TitlePage;
import com.stephentuso.welcome.WelcomeAbility;
import com.stephentuso.welcome.WelcomeConfiguration;

/**
 * Created by stephentuso on 11/16/16.
 */

public class PreviousButtonWelcomeAbility extends WelcomeAbility {

    @Override
    protected WelcomeConfiguration configuration() {
        return new WelcomeConfiguration.Builder(this)
                .defaultBackgroundColor(ResourceTable.Color_colorPrimary)
                .showPrevButton(true)
                .backButtonNavigatesPages(false)
                .defaultTitleTypefacePath("Roboto-Bold.ttf")
                .defaultHeaderTypefacePath("Roboto-Bold.ttf")
                .showActionBarBackButton(true)
                .page(new TitlePage(this, ResourceTable.Graphic_ic_image_white, "Title Page"))
                .page(new BasicPage(this, ResourceTable.Graphic_ic_image_white, "Basic Page", "A page with a title and description").background(ResourceTable.Color_purple_background))
                .page(new ParallaxPage(this, ResourceTable.Layout_parallax_example_two, "Parallax page", "Applies a parallax effect and has a title and description").background(ResourceTable.Color_red_background))
                .page(new FullscreenParallaxPage(this, ResourceTable.Layout_parallax_example_fullscreen).background(ResourceTable.Color_orange_background))
                .build();
    }

}
